﻿<%@ Page Language="C#" MasterPageFile="~/WebSite.Master" AutoEventWireup="true" CodeBehind="CAOrderDetail.aspx.cs"
    Inherits="RN.ERP.Web.CA.CAOrderDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../Styles/skins/blue/css/style_msg.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Scripts/iepngfix_tilebg.js"></script>
    <script type="text/javascript" src="../Scripts/ligerUI/js/ligerui.min.js"></script>
    <script type="text/javascript">
        /*打开添加窗口*/
        function ShowAddForm(url) {
            $.ligerDialog.open({ url: url, width: 900, height: 600, title: '选择产品', buttons: [{ text: '关闭', onclick: function (item, dialog) { dialog.close(); } }] });
            return false;
        }
        function CloseWin(value) {
            //var value = empid + "@" + procode;
            $("#hdnPersonOrders").val($("#hdnPersonOrders").val() + value + ",");
            //alert($("#hdnPersonOrders").val());
            $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");
        }

        $(function () {
            $(".danxuan_check").click(function () {
                if ($(this).attr('checked')) {
                    $(".danxuan_check").removeAttr('checked');
                    $(this).attr('checked', 'checked');
                }
            });
            $(".return_a").click(function () {
                RedirectWin();
            });
            var group = $("#hidGroup").val();
            if (group == "CA02") {
                $(".hiddenFee").css("display", "none");
            }
            if (group != "") {
                $(".div" + group).css("display", "");
            }
        })
        function RedirectWin() {
            location.href = "../CA/CAOrderList.aspx?group=" + $("#hidGroup").val();
        }
        function RefreshWin() {
            location.href = location.href;
        }
    </script>
    <style>
        .IE6png
        {
            behavior: url("../Scripts/iepngfix.htc");
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:HiddenField ID="hdnPersonOrders" runat="server" ClientIDMode="Static" />
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <%--<tr>
            <td colspan="4" height="30" class="position">
                您所在的位置：<a href="#">首页</a>&gt;&gt;<a id="aList" style="cursor: pointer;" runat="server">订单列表</a>&gt;&gt;<span
                    class="blue">企业订单</span>
            </td>
        </tr>--%>
        <tr>
            <td width="19" class="xx_m">
                <img src="../Images/xx_l.jpg" width="19" height="33" />
            </td>
            <td width="24" class="xx_m  tt_xx_icon">
                &nbsp;
            </td>
            <td width="1250" class="xx_m">
                订单详情
            </td>
            <td width="14">
                <img src="../Images/xx_r.jpg" width="14" height="33" />
            </td>
        </tr>
        <tr>
            <td class="left_con">
                &nbsp;
            </td>
            <td colspan="2" style="padding-left: 6px; padding-right: 6px;" valign="top">
                <!--#订单详情-->
                <div>
                    <div class="xian">
                        <div class="about_title">
                            企业数字证书产品订单详情</div>
                    </div>
                    <div class="blue" style="margin-bottom: 6px;">
                        <strong>企业信息</strong></div>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab" style="margin-bottom: 15px;">
                        <tr>
                            <td width="15%" bgcolor="#f2f2f2">
                                <strong>企业名称</strong>
                            </td>
                            <td width="85%" style="text-align: left">
                                <asp:Label ID="lbCorpName" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td bgcolor="#f2f2f2">
                                <strong>用 户 名</strong>
                            </td>
                            <td style="text-align: left">
                                <asp:Label ID="lbUserName" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                    <div class="divCA04 divCA03 divCA02" style="display: none;" id="ProBuy" runat="server">
                        <div class="blue" style="margin-bottom: 6px;">
                            <strong>已购买产品</strong>
                        </div>
                        <asp:Repeater ID="repOld" runat="server">
                            <HeaderTemplate>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab">
                                    <thead>
                                        <tr>
                                            <td width="20%" bgcolor="#f2f2f2">
                                                <strong>产品名称</strong>
                                            </td>
                                            <td bgcolor="#f2f2f2" class="tbDes">
                                                <strong>产品详细描述</strong>
                                            </td>
                                            <td width="14%" bgcolor="#f2f2f2">
                                                <strong>费用(元)</strong>
                                            </td>
                                            <td width="14%" bgcolor="#f2f2f2">
                                                <strong>年费(元)</strong>
                                            </td>
                                        </tr>
                                    </thead>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tbody>
                                    <tr>
                                        <td>
                                            <%#Eval("Title")%>
                                        </td>
                                        <td>
                                            <%#Eval("Description")%>
                                        </td>
                                        <td>
                                            <asp:Label ID="lbOldCorpFee" runat="server" Text='<%#Eval("Fee")%>'></asp:Label>
                                        </td>
                                        <td>
                                            <%#Eval("YearlyFee")%>
                                        </td>
                                    </tr>
                                </tbody>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>
                    </div>
                    <div id="ProChoose" runat="server">
                        <div class="blue" style="margin-bottom: 6px;">
                            <strong>产品选择</strong></div>
                        <asp:Repeater ID="repCorp" runat="server" OnItemDataBound="repCorp_ItemDataBound">
                            <HeaderTemplate>
                                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab">
                                    <thead>
                                        <tr>
                                            <td width="5%" bgcolor="#f2f2f2">
                                                <strong>选择</strong>
                                            </td>
                                            <td width="15%" bgcolor="#f2f2f2">
                                                <strong>产品名称</strong>
                                            </td>
                                            <td bgcolor="#f2f2f2" class="tbDes">
                                                <strong>产品详细描述</strong>
                                            </td>
                                            <td width="14%" bgcolor="#f2f2f2" class="hiddenFee">
                                                <strong>费用(元)</strong>
                                            </td>
                                            <td class="hiddenYearlyFee" width="14%" bgcolor="#f2f2f2">
                                                <strong>年费(元)</strong>
                                            </td>
                                            <td width="10%" bgcolor="#f2f2f2" class="divCA04 divCA03" style="display: none;">
                                                <strong>需补费用(元)</strong>
                                            </td>
                                        </tr>
                                    </thead>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tbody>
                                    <tr>
                                        <td>
                                            <input id="ckCorp" type="checkbox" runat="server" class="danxuan_check" value='<%#Eval("Code") %>' />
                                        </td>
                                        <td>
                                            <%#Eval("Title")%>
                                        </td>
                                        <td>
                                            <%#Eval("Description")%>
                                        </td>
                                        <td class="hiddenFee">
                                            <asp:Label ID="lbCorpFee" runat="server" Text='<%#Eval("Fee")%>'></asp:Label>
                                        </td>
                                        <td class="hiddenYearlyFee">
                                            <asp:Label ID="lbYearlyFee" runat="server" Text='<%#Eval("YearlyFee")%>'></asp:Label>
                                        </td>
                                        <td class="divCA04 divCA03" style="display: none;">
                                            <asp:HiddenField ID="hidSumPay" runat="server" Value='<%#Eval("SumPay")%>' />
                                            <asp:Label ID="lbAddFee" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                </tbody>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>
                    </div>
                </div>
                <!--#订单详情结束-->
                <!--#注意事项-->
                <div class="xkz">
                    <div class="xkz_title">
                        <div class="fl">
                            <strong>注意事项</strong></div>
                        <div class="clear">
                        </div>
                    </div>
                    <div class="xkz_con divCA01" style="display: none;">
                        1. 电子评标系统目前部分地区开通，请与当地招办联系。
                    </div>
                    <div class="xkz_con divCA02" style="display: none;">
                        1. 电子评标系统目前部分地区开通，请与当地招办联系。<br />
                        <span style="color: Red; font-size: 16px;">2. 财务确认后请在30日之内完成数字证书更新。</span>
                    </div>
                    <div class="xkz_con divCA03" style="display: none;">
                        1. 电子评标系统目前部分地区开通，请与当地招办联系。
                    </div>
                    <div class="xkz_con divCA04" style="display: none;">
                        1. 电子评标系统目前部分地区开通，请与当地招办联系。
                    </div>
                </div>
                <!--#注意事项结束-->
            </td>
            <td class="right_con">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="left_con">
                &nbsp;
            </td>
            <td colspan="2" style="padding-left: 6px; padding-right: 6px;" valign="top">
                <!--#订单详情-->
                <div id="divPerson" runat="server">
                    <div class="xian">
                        <div class="about_title">
                            个人数字证书产品订单详情</div>
                    </div>
                    <div class="blue" style="margin-bottom: 6px;">
                        <strong>个人信息</strong></div>
                    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
                        <AjaxSettings>
                            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="gridLoadingPanel">
                                    </telerik:AjaxUpdatedControl>
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                                <UpdatedControls>
                                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="gridLoadingPanel">
                                    </telerik:AjaxUpdatedControl>
                                </UpdatedControls>
                            </telerik:AjaxSetting>
                        </AjaxSettings>
                    </telerik:RadAjaxManager>
                    <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1">
                    </telerik:RadAjaxLoadingPanel>
                    <telerik:RadGrid ID="RadGrid1" runat="server" ShowStatusBar="True" AllowSorting="false"
                        CssClass="tab" AllowFilteringByColumn="false" CellSpacing="0" Culture="zh-CN"
                        GridLines="None" AllowPaging="true" AllowCustomPaging="true" OnNeedDataSource="RadGrid1_NeedDataSource"
                        Width="100%">
                        <MasterTableView AutoGenerateColumns="false" DataKeyNames="ID" NoMasterRecordsText="暂无数据"
                            InsertItemPageIndexAction="ShowItemOnCurrentPage" AllowNaturalSort="False" AllowSorting="false"
                            CommandItemDisplay="Top">
                            <CommandItemSettings ExportToPdfText="Export to PDF" />
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="true">
                            </RowIndicatorColumn>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                </EditColumn>
                            </EditFormSettings>
                            <PagerStyle AlwaysVisible="True" />
                            <CommandItemTemplate>
                            </CommandItemTemplate>
                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridTemplateColumn FilterListOptions="VaryByDataType" HeaderText="ID" UniqueName="ID"
                                    HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="10%" Visible="false">
                                    <ItemTemplate>
                                        <asp:Label ID="lbID" runat="server" Text='<%#Eval("ID") %>'></asp:Label>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn FilterListOptions="VaryByDataType" HeaderText="姓名" UniqueName="Name"
                                    HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="9%">
                                    <ItemTemplate>
                                        <asp:Label ID="lbName" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn DataField="IDCard" HeaderText="身份证号" UniqueName="IDCard"
                                    HeaderStyle-Width="15%" HeaderStyle-HorizontalAlign="Center">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn FilterListOptions="VaryByDataType" HeaderText="产品描述"
                                    UniqueName="Description" HeaderStyle-HorizontalAlign="Center">
                                    <ItemTemplate>
                                        <asp:Label ID="lbDescription" runat="server" Text='<%#Eval("Description") %>'></asp:Label>
                                        </div>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn FilterListOptions="VaryByDataType" HeaderText="费用(元)"
                                    UniqueName="Fee" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                        <asp:Label ID="lbFee" runat="server" Text='<%#Eval("Fee") %>'></asp:Label>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn FilterListOptions="VaryByDataType" HeaderText="年费(元)"
                                    UniqueName="YearlyFee" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                        <asp:Label ID="lbYearlyFee" runat="server" Text='<%#Eval("YearlyFee") %>'></asp:Label>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn FilterListOptions="VaryByDataType" HeaderText="需补费用(元)"
                                    UniqueName="AddFee" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                        <asp:Label ID="lbAddFee" runat="server" Text='<%# Eval("YearlyFee") != null&&Eval("YearlyFee") != "" ?(Convert.ToDouble(Eval("YearlyFee"))+100).ToString() : ""%>'></asp:Label>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn FilterListOptions="VaryByDataType" HeaderText="Code"
                                    UniqueName="Code" HeaderStyle-HorizontalAlign="Center" Visible="false">
                                    <ItemTemplate>
                                        <asp:Label ID="lbCode" runat="server" Text='<%#Eval("Code") %>'></asp:Label>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn FilterListOptions="VaryByDataType" HeaderText="选择产品"
                                    UniqueName="EmpId" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="10%">
                                    <ItemTemplate>
                                        <%--<a style="cursor: pointer;" onclick="ShowAddForm('CAProductSelect.aspx?EmpId=<%#Eval("ID") %>&Name=<%#Eval("Name") %>&IDCard=<%#Eval("IDCard") %>&ProCode=<%#Eval("Code") %>');">
                                            <img alt="" src="../Images/search.jpg" /></a>--%>
                                        <%--<a style="cursor: pointer;" onclick="ShowAddForm('<%#GetNavigateUrl(Eval("ID"),Eval("Name"),Eval("IDCard"),Eval("Code")) %>');">
                                            <img alt="" src="../Images/addicon.jpg" /></a>--%>
                                        <div style="width: 1px; height: 1px; margin: 0 auto;">
                                            <a class="icon_add" href="javascript:void(0);" title="添加" onclick="ShowAddForm('<%#GetNavigateUrl(Eval("ID"),Eval("Name"),Eval("IDCard"),Eval("Code")) %>');">
                                            </a>
                                        </div>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                            </Columns>
                        </MasterTableView>
                        <ClientSettings EnableRowHoverStyle="true">
                            <Selecting AllowRowSelect="True"></Selecting>
                        </ClientSettings>
                        <PagerStyle AlwaysVisible="True" />
                        <FilterMenu EnableImageSprites="False">
                        </FilterMenu>
                    </telerik:RadGrid>
                </div>
                <!--#订单详情结束-->
                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top: 15px;">
                    <tr>
                        <td width="300">
                            &nbsp;
                        </td>
                        <td width="189">
                            <div class="icon01 IE6png">
                                <asp:LinkButton ID="lbtnCreat" runat="server" OnClick="lbtnCreat_Click">生成订单</asp:LinkButton>
                                <asp:LinkButton ID="lbtnEdit" runat="server" OnClick="lbtnCreat_Click">修改订单</asp:LinkButton>
                            </div>
                        </td>
                        <td width="35">
                            &nbsp;
                        </td>
                        <td width="100">
                            <div class="icon02 IE6png">
                                <asp:LinkButton ID="lbtnChoose" runat="server" OnClick="lbtnChoose_Click">重新选择</asp:LinkButton></div>
                        </td>
                        <td width="35">
                            &nbsp;
                        </td>
                        <td width="189" style="text-align: center;">
                            <div class="icon02 IE6png">
                                <a href="javascript:void(0);" class="return_a">返回</a>
                            </div>
                        </td>
                        <td width="323">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
            <td class="right_con">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="con_m tt_left_bottom">
                &nbsp;
            </td>
            <td colspan="2" class="con_m">
                &nbsp;
            </td>
            <td class="tt_right_bottom">
                &nbsp;
            </td>
        </tr>
    </table>
    <div id="UDialog" style="margin: auto; width: 900px;">
        <telerik:RadAjaxLoadingPanel runat="server" ID="gridLoadingPanel">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
            <Windows>
                <telerik:RadWindow ID="UserDialog" runat="server" Title="选择产品" Height="600px" Behaviors="Close"
                    Width="900px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false"
                    Modal="true" Skin="WebBlue" VisibleStatusbar="False">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
    </div>
    <asp:HiddenField ID="hidOrderId" runat="server" />
    <asp:HiddenField ID="hidGroup" runat="server" ClientIDMode="Static" />
</asp:Content>
